public with sharing class WrperLinktoContact
{
public Contact cont{get;set;}
//public string contactid{get;set;}
public WrperLinktoContact(Contact con)
{
    cont=con;
    //contactid=con.Id;
}

public List<SelectOption> getRecTypeitem() 
{
        List<SelectOption> options = new List<SelectOption>();
        List<RecordType> lstRectype = [SELECT Id,Name FROM RecordType WHERE SobjectType='Contact' and name in('ATT Professional','IOG Contact')];
        for(RecordType RecType:lstRectype)
        {
        if(RecType.Name=='IOG Contact')
        options.add(new SelectOption(RecType.Id,'Customer'));
        if(RecType.Name=='ATT Professional')
        options.add(new SelectOption(RecType.Id,'ATT Employee'));
        
        }
       return options;
}

public string selRectype{get;set;}
public string getSyncLock()
{
    string flag='False';
    if(cont.Sync_Lock__c!=null)
    return cont.Sync_Lock__c;
    else
    return flag;
}

}